<?php

class Application_Model_PriceFillsService
extends Application_Model_BaseService
{
    protected $dbTableName = 'Application_Model_DbTable_PriceFills';
    protected $modelName = 'Application_Model_PriceFill';
	private   static $instance = null;
    
    public static function getInstance(){
        if (Application_Model_PriceFillsService::$instance == null)
            Application_Model_PriceFillsService::$instance = 
                new Application_Model_PriceFillsService();
        
        return Application_Model_PriceFillsService::$instance;
    }
    
    public function getPaginatorRows ($pageNumber = 1)
	{
		$paginator = new Zend_Paginator(
            new Zend_Paginator_Adapter_DbSelect(
                $this   ->getDbTable()
                        ->select()
            )
        );
        
		$paginator->setCurrentPageNumber($pageNumber);
		$paginator->setItemCountPerPage(16);
		$paginator->setPageRange(3);
		return $paginator;
	}
}

